<style>
.span2{_display:inline;}
</style>
<form action="{url('estate/index')}" method="get" >             
                
                  
                                   
                  <!--               
                  <select name="apartment" class="span3"> 
                  <option value="" {if !isset($_GET['apartment']) || $_GET['apartment']===''}selected{/if}>户型</option>  
                  <option value="0" {if $_GET['apartment']==='0'}selected{/if}>未填写</option> 
                  {loop $apartment $val}
                  <option value="{$val['id']}" {if $_GET['apartment']==$val['id']}selected{/if}>{$val['name']}</option>
                  {/loop}
                  </select>
                  -->
                  <!--
                  <select name="area">
                  <option value="">面积</option>
				  <option value="1" {if $_GET['area']==1}selected{/if}>0-30㎡</option> 
                  <option value="2" {if $_GET['area']==2}selected{/if}>30-60㎡</option> 
                  <option value="3" {if $_GET['area']==3}selected{/if}>60-90㎡</option> 
                  <option value="4" {if $_GET['area']==4}selected{/if}>90-120㎡</option> 
                  <option value="5" {if $_GET['area']==5}selected{/if}>120-150㎡</option> 
                  <option value="6" {if $_GET['area']==6}selected{/if}>150㎡以上</option>
				  </select>
                  <div style="clear:both"></div>
                  -->

                 <!-- 价格：<input type="text" name="min" value="{$_GET['min']}" style="width:85px;"/> 至 
<input type="text" value="{$_GET['max']}" name="max" style="width:85px;"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
网号<input type="text" name="netid"  />-->
<table>
	<tr>
		<td>交易类型</td>
    	<td width="100">
        	<select name="type" style="width:80px">                                    
            	<option value="1" {if $_GET['type']==1}selected{/if}>出租</option>   
                <option value="2" {if $_GET['type']==2}selected{/if}>出售</option>
            </select> 
        </td>  	
		<td>房产类型</td>
       <td width="100"><select name="apartment" style="width:80px"> 
                  <option value="" {if !isset($_GET['apartment']) || $_GET['apartment']===''}selected{/if}>普通住宅</option>  
                  <option value="店面" {if $_GET['apartment']==='店面'}selected{/if}>店面</option>
                  <option value="别墅" {if $_GET['apartment']==='别墅'}selected{/if}>别墅</option>
                  <option value="写字楼" {if $_GET['apartment']==='写字楼'}selected{/if}>写字楼</option>
                  <option value="公寓" {if $_GET['apartment']==='公寓'}selected{/if}>公寓</option>
                  <option value="商住楼" {if $_GET['apartment']==='商住楼'}selected{/if}>商住楼</option>
                  <option value="楼中楼" {if $_GET['apartment']==='楼中楼'}selected{/if}>楼中楼</option>
                  <option value="车位" {if $_GET['apartment']==='车位'}selected{/if}>车位</option>
                  <option value="仓库" {if $_GET['apartment']==='仓库'}selected{/if}>仓库</option>
                  <option value="厂房" {if $_GET['apartment']==='厂房'}selected{/if}>厂房</option>
                  <option value="土地" {if $_GET['apartment']==='土地'}selected{/if}>土地</option>
                  <option value="场地" {if $_GET['apartment']==='场地'}selected{/if}>场地</option>
                  <option value="0" {if $_GET['apartment']==='0'}selected{/if}>其他</option>                  
                  </select>  </td>		
  		<td width="80">
        <select name="fang" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['fang']==$i}selected{/if}>{$i}</option>
            {/for}
        </select></td><td> (房)</td><td width="80">
       <select name="ting" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['ting']==$i}selected{/if}>{$i}</option>
            {/for}
       </select> </td><td>(厅)</td><td width="80">
       <select name="wei" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['wei']==$i}selected{/if}>{$i}</option>
            {/for}
       </select> </td><td>(卫)</td><td width="80">
       <select name="chu" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['chu']==$i}selected{/if}>{$i}</option>
            {/for}
       </select> </td><td>(厨)</td><td width="80">
       <select name="yang" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['yang']==$i}selected{/if}>{$i}</option>
            {/for} 
       </select> </td><td width="50">(阳)</td>
	   
       </tr>
       
   </table>

 地址<input type="text" id="address" name="address" value="{if $_GET['address']}{$_GET['address']}{else}输入关键字(楼盘名或地段等){/if}" class="text" style="width:370px;" autocomplete="off" />          
开始时间<input type="text" id="st" name="start" onclick="return Calendar('st');" value="{$_GET['start']}" class="text" style="width:85px;"/> 终止时间
<input type="text" id="et" onclick="return Calendar('et');" value="{$_GET['end']}" name="end" class="text" style="width:85px;"/>&nbsp;&nbsp;
网号:<input type="text" name="netid" value="{$_GET['netid']}" class="text" style="width:85px;"/>
                       <input type="submit" name="search" class="btn btn-primary" value="搜索">
              
</form>

<div id="selectItem" class="selectItemhidden"> 
	<ul class="clearfix">
	{loop $address $val}
	<li class="clicks">{$val['name']}</li>
	{/loop}
	</ul>
</div> 
<script src="__PUBLIC__/js/showdate.js"></script>
<script src="__PUBLIC__/js/selectCity.js"></script>
<script>
$(function(){
	if($('#address').val()=='输入关键字(楼盘名或地段等)'){
		$('#address').css('color','#ccc')
	}
	$('#address').focus(function(){
		if($('#address').val()=='输入关键字(楼盘名或地段等)'){
			$('#address').val('');
		}
		$(this).css('color','#333');
	});
	$('#address').blur(function(){
		if($('#address').val()==''){
			$('#address').val('输入关键字(楼盘名或地段等)');
			$(this).css('color','#ccc');
		}
		
	});
});
</script>
<style>
.select2-container{width:180px;}
.select2-search input{width:170px;*width:150px;}
#selectItem {background:#f1f1f1;border:1px solid #ccc;width:680px;display:none;}
#selectItem ul{margin:0;padding:3px;}
#selectItem li{width:60px;float:left;cursor:pointer;list-style:none;margin:0;padding:3px;}
</style>